<?php


date_default_timezone_set('Asia/Shanghai');
init_mysql();

function init_mysql(){
		$con = mysql_connect('localhost', 'rent', 'rent');
		if(!$con){
			die("Cound't connect: ".mysql_error());
		}
		mysql_select_db("rent");
		mysql_query("set names 'utf8'");
}


class Room{
	public $no;
	public $name;
	public $status;
}


function printErrorMsg($msg=''){
	
	echo "<span class='error'>".$msg."</span>";
	
}

?>